package demo.annotation;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author : GuoFei
 * @date : 2018/9/27 11:33
 */
@Aspect
@Component
public class RecordMeHandler {


    @Before(value = "pointCut() && @annotation(recordMe)")
    public void before(RecordMe recordMe){
        System.out.println(recordMe.methodName());
        System.out.println("Before");

    }


    @Pointcut(value = "execution(* demo.quartz..*.*(..))")
    public void pointCut(){}

}
